{% extends "base.html" %}

{% block auth-menu %}
<div id='main-nav-bg'></div>
<nav class='' id='main-nav'>
<div class='navigation'>


<ol class='nav nav-stacked'>

{% for item in perms %}

{#保证仪表板为 菜单项第一个#}
{% ifequal item "palmgo.index" %}
<li class={% block index_active %}{% endblock %}>
    <a href='/index'>
        <i class='icon-dashboard'></i>
        <span>仪表板</span>
    </a>
</li>
{% endifequal %}
{% endfor %}

{% for item in perms %}
{% ifequal item "palmgo.interface" %}
<li  class={% block active %}{% endblock %}>
    <a class='dropdown-collapse' href='#'>
        <i class='icon-edit'></i>
        <span>接口获取</span>
        <i class='icon-angle-down angle-down'></i>

    </a>
    <ul class='nav nav-stacked' style={% block display %}{% endblock %}>
        <li  class={% block active_sub1 %}{% endblock %}>
            <a href='/totle_interface'>
                <i class='icon-caret-right'></i>
                <span>接口获取频次</span>
            </a>
        </li>
        <li class={% block active_sub2 %}{% endblock %}>
            <a href='/city_interface'>
                <i class='icon-caret-right'></i>
                <span>接口获取频次(城市)</span>
            </a>
        </li>
        <li class={% block active_sub3 %}{% endblock %}>
            <a href='/download_interface'>
                <i class='icon-caret-right'></i>
                <span>接口获取频次下载</span>
            </a>
        </li>

    </ul>
</li>
{% endifequal %}

{% ifequal item "palmgo.source_total" %}
<li class={% block active1 %}{% endblock %}>
    <a class='dropdown-collapse ' href='#'>
        <i class='icon-tint'></i>
        <span>数据源统计</span>
        <i class='icon-angle-down angle-down'></i>
    </a>
    <ul class='nav nav-stacked' style={% block display1 %}{% endblock %}>
        <li class={% block active_sub4 %}{% endblock %}>
            <a href='/taxi_table'>
                <i class='icon-caret-right'></i>
                <span>出租车数据源统计</span>
            </a>
        </li>
        <li class={% block active_sub5 %}{% endblock %}>
            <a href='/taxi_show'>
                <i class='icon-caret-right'></i>
                <span>出租车车辆数展示</span>
            </a>
        </li>
        <li class={% block active_sub_cover %}{% endblock %}>
            <a href='/cover'>
                <i class='icon-caret-right'></i>
                <span>数据源覆盖展示</span>
            </a>
        </li>
            <li class={% block active_sub_source_hot %}{% endblock %}>
            <a href='/source_hot'>
                <i class='icon-caret-right'></i>
                <span>数据源热力图 </span>
            </a>
        </li>
            <li class={% block active_sub6 %}{% endblock %}>
            <a href='/huoyun_show'>
                <i class='icon-caret-right'></i>
                <span>货运车辆数展示</span>
            </a>
        </li>
                <li class={% block active_keyun_show %}{% endblock %}>
            <a href='/keyun_show'>
                <i class='icon-caret-right'></i>
                <span>客运车辆数展示</span>
            </a>
        </li>
            <li class={% block active_sub_taxi_all_show %}{% endblock %}>
            <a href='/taxi_all_show'>
                <i class='icon-caret-right'></i>
                <span>出租车数据展示</span>
            </a>
        </li>
            <li class={% block active_sub_source_show %}{% endblock %}>
            <a href='/source_show'>
                <i class='icon-caret-right'></i>
                <span>行业数据展示(实时)</span>
            </a>
        </li>
                <li class={% block active_sub_source_pic_show %}{% endblock %}>
            <a href='/source_show_pic' target="_blank">
                <i class='icon-caret-right'></i>
                <span>行业数据展示(图片)</span>
            </a>
        </li>
            <li class={% block active_backupfile %}{% endblock %}>
            <a href='/backupfile_show'>
                <i class='icon-caret-right'></i>
                <span>数据源备份统计</span>
            </a>
        </li>
             <li class={% block active_updowncars %}{% endblock %}>
            <a href='/updowncars'>
                <i class='icon-caret-right'></i>
                <span>空重车分析</span>
            </a>
        </li>
    </ul>
</li>
{% endifequal %}

{% ifequal item "palmgo.monitor_total" %}
<li class={% block active2 %}{% endblock %}>
    <a class='dropdown-collapse ' href='#'>
        <i class='icon-cogs'></i>
        <span>报警统计</span>
        <i class='icon-angle-down angle-down'></i>
    </a>
    <ul class='nav nav-stacked' style={% block display2 %}{% endblock %}>
        <li class={% block active_sub_fault_total %}{% endblock %}>
            <a href='/fault_total'>
                <i class='icon-bar-chart'></i>
                <span>故障统计报表</span>
            </a>
        </li>

        <li class={% block active_sub_restart %}{% endblock %}>
            <a href='/total_restart'>
                <i class='icon-comments'></i>
                <span>重启统计</span>
            </a>
        </li>

    </ul>
</li>
{% endifequal %}

{% ifequal item "palmgo.ribao" %}
    <li class={% block active_sub_ribao %}{% endblock %}>
            <a href='/ribao'>
                <i class='icon-envelope'></i>
                <span>日故障统计报表</span>
            </a>
        </li>
{% endifequal %}


{% ifequal item "palmgo.event_total" %}
<li class={% block active_event %}{% endblock %}>
    <a class='dropdown-collapse ' href='#'>
        <i class='icon-tint'></i>
        <span>事件统计</span>
        <i class='icon-angle-down angle-down'></i>
    </a>
    <ul class='nav nav-stacked' style={% block display_event %}{% endblock %}>
        <li class={% block active_event_inter %}{% endblock %}>
            <a href='/event_inter_show' target="_blank">
                <i class='icon-caret-right'></i>
                <span>城际事件展示</span>
            </a>
        </li>
    </ul>
</li>
{% endifequal %}
{% endfor %}

</ol>

</div>
</nav>


{% endblock %}